package com.airy.apprepairequipment.socket;

import java.io.IOException;

/**
 * @description: 客户端测试启动类
 * @author airy
 * @date 2020/11/19 8:37
 */

/**
 * 二、编写客户端代码
 * 一：客户端，创建三个客户，传入host，端口，客户端名称，发送间隔时间，发送内容消息
 */
public class SocketClient {
    public static void main(String[] args) throws IOException {


        //服务端IP和端口 创建客户端服务端socket
        new Thread(new SocketClientWorker("127.0.0.1", 3131, "主机1", 60 * 1000)).start();
        new Thread(new SocketClientWorker("127.0.0.1", 3131, "主机2", 60 * 1000)).start();
        new Thread(new SocketClientWorker("127.0.0.1", 3131, "主机3", 60 * 1000)).start();

    }

}
